package com.lean.android.adsdk

import android.content.Intent
import com.lean.android.ad.core.PrivacyDialogBlockChain
import com.lean.android.ad.core.splash.SplashAdLauncherActivity

class LauncherActivity : SplashAdLauncherActivity() {

    override fun launchMain() {
        startActivity(Intent(this, MainActivity::class.java))
    }

    override fun showPrivacyDialog(chain: PrivacyDialogBlockChain) {
        PrivacyDialog(context = this, onAgree = {
            chain.onAccept {}
        }, onDisagree = {
            chain.onDenied()
        }).show()
    }
}